package com.yxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxx.entity.Friend;
import com.yxx.entityModel.vo.query.FriendQuery;
import com.yxx.entityModel.vo.response.FriendBackResponse;
import com.yxx.entityModel.vo.response.FriendResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/1/31
 * @apiNote
 */
@Repository
public interface FriendMapper extends BaseMapper<Friend> {
    /**
     * 查看友链列表
     * @return
     */
    List<FriendResponse> selectFriendListVO();

    /**
     * 查看友链后台列表
     * @param friendQuery 友链查询条件
     * @return 友链后台列表
     */
    List<FriendBackResponse> selectFriendBackListVO(@Param("param") FriendQuery friendQuery);
}
